package com.yinkgh;

import java.nio.charset.Charset;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.converter.StringHttpMessageConverter;

//@SpringBootApplication
//@Configuration
//@MapperScan("com.yinkgh.mybatis.mapper")
//@ComponentScan(basePackages={"com.yinkgh","org.kfit"})
//@ComponentScan(basePackages={"com.yinkgh"})
public class Main {

	public static void main(String[] args) {
        SpringApplication.run(Main.class, args);
    }
	
	//消息转换器 测试 改为ISO-8859-1中文会不正常 
	/*@Bean
	public StringHttpMessageConverter stringHttpMessageConverter() {
		StringHttpMessageConverter converter = new StringHttpMessageConverter(Charset.forName("ISO-8859-1"));
//		StringHttpMessageConverter converter = new StringHttpMessageConverter(Charset.forName("UTF-8"));
		return converter;
	}*/
	
}
